#! /usr/bin/python
# A Python script that simulates rolling two dice a few times.

# Module for dealing with random numbers.
import random

print 'Content-Type: text/plain'
print ''

# Number of times to roll the dice.

count = 0
dice_1 = 0
dice_2 = 0
while (dice_1 != 6 or dice_2 != 6):
	# Simulate rolling two dice.
	dice_1 = random.randint(1, 6)
	dice_2 = random.randint(1, 6)
	count+=1
	print "Roll " + str(count) + ": " + str(dice_1), str(dice_2)
	if dice_1 == dice_2:
		if dice_1 == 1:
			print "Snake Eyes"
		else:
			print "You got double " +str(dice_1)+ "'s"
print "It took " +str(count)+ " rolls."
